package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.seata.spring.annotation.GlobalTransactional;
import jakarta.annotation.Resource;
import org.example.bean.Stoke;
import org.example.mapper.StokeMapper;
import org.example.service.StokeService;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:StokeServiceImpl
 * @Date:2025/9/25 15:22
 */
@Service
public class StokeServiceImpl extends ServiceImpl<StokeMapper, Stoke> implements StokeService {
    @Resource
    private StokeMapper stokeMapper;

    @GlobalTransactional
    public int updateStoke(Stoke stoke) {
        return stokeMapper.updateStock(stoke);
    }
}
